<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">Host</label>
            <div class="layui-input-block">
                <input type="text" name="redis_host" required value="{:sysconf('redis_host')}" placeholder="localhost" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">Port</label>
            <div class="layui-input-block">
                <input type="text" name="redis_port" required value="{:sysconf('redis_port')}" placeholder="6379" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">prefix</label>
            <div class="layui-input-block">
                <input type="text" name="redis_prefix" required value="{:sysconf('redis_prefix')}" placeholder="WandhiTools:" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">db</label>
            <div class="layui-input-block">
                <input type="text" name="redis_db" required value="{:sysconf('redis_db')}" placeholder="0" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">timeout</label>
            <div class="layui-input-block">
                <input type="text" name="redis_timeout" required value="{:sysconf('redis_timeout')}" placeholder="3600" class="layui-input">
            </div>
        </div>
        <div class="hr-line-dashed margin-left-40"></div>
        <div class="layui-form-item text-center padding-left-40">
            <input type="hidden" name="storage_type" value="local">
            <button class="layui-btn" type="submit">保存配置</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗？" data-close>取消修改</button>
        </div>
    </div>
</form>